package com.liang.kborcl.aspect;

import org.apache.shardingsphere.shardingjdbc.jdbc.annotation.Mandatory;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ShardingAspect {


    @Around(value = "@annotation(mandatory)")
    public Object around(ProceedingJoinPoint pjp, Mandatory mandatory) throws Throwable {

        Object proceed = pjp.proceed();

        return proceed;
    }

}
